import request from '@/utils/request'

// 查询医院预警列表
export function listLog(query) {
  return request({
    url: '/his/log/list',
    method: 'get',
    params: query
  })
}

// 查询医院预警详细
export function getLog(hospitalId) {
  return request({
    url: '/his/log/' + hospitalId,
    method: 'get'
  })
}

// 新增医院预警
export function addLog(data) {
  return request({
    url: '/his/log',
    method: 'post',
    data: data
  })
}

// 修改医院预警
export function updateLog(data) {
  return request({
    url: '/his/log',
    method: 'put',
    data: data
  })
}

// 删除医院预警
export function delLog(hospitalId) {
  return request({
    url: '/his/log/' + hospitalId,
    method: 'delete'
  })
}

// 导出医院预警
export function exportLog(query) {
  return request({
    url: '/his/log/export',
    method: 'get',
    params: query
  })
}